package com.biz.primus.model.member.exception;

import com.biz.primus.base.exception.ExceptionType;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created by liangbin on 2017/11/28.
 */
@Getter
@AllArgsConstructor
public enum UserExceptionType implements ExceptionType{
    USER_NOT_EXIST(5500, "用户不存在"),
    MOBILE_ERROR(5501, "手机号格式错误"),
    USER_ALREADY_EXIST(5502, "用户已存在"),
    USERNAME_OR_PASSWORD_ERROR(5503, "用户名或密码错误"),
    ILLEGAL_USER_LEVEL(5504, "用户等级有误，请咨询客服！"),
    OLD_PASSWORD_ERROR(5505, "原密码错误，请重新输入！"),
    PASSWORD_ERROR(5506, "密码错误"),
    ADDRESS_NOT_EXIST(5507, "收货地址不存在，请新建或者重新选择！"),
    HAND_PASSWORD_DISABELD(5508, "手势密码已被禁用"),
    MOBILE_NOT_FOUND(5511, "您的账号尚未绑定手机号"),
    USER_BE_FROZEN(5513, "您的账号被冻结，请联系客服。"),
    OTHER_DEVICE_LOGIN(5514, "您的账号在其他设备登录，如非本人操作请修改密码！"),
    AUTH_DENIED(5515, "您的账号在其他设备登录，如非本人操作请修改密码！"),
    USERLEVEL_NOT_EXIST(5516, "用户等级不存在"),
    USER_ID_MISMATCH(5517, "用户不匹配,您没有权限执行此操作"),
    MOBILE_NOT_EXIST(5518, "手机号不能为空,请输入手机号"),
    USERNAME_NOT_EXIST(5519, "登录账号不能为空,请输入账号"),
    PASSWORD_NOT_EXIST(5520, "密码不能为空,请输入密码"),
    NEW_PASSWORD_REPEATED(5521, "新密码与老密码不能相同"),
    CHANNEL_CODE_NOT_EXIST(5523, "渠道编码不能为空"),
    CHANNEL_NOT_EXIST(5524, "用户渠道不存在"),
    USER_MOBILE_NOT_EXIST(5525, "用户没有绑定手机号"),
    RESET_PASSWORD_ERROR(5525, "重置密码失败"),
    UPDATE_PASSWORD_ERROR(5526, "修改密码失败"),
    NOT_LOGIN_ERROR(5527, "用户未登录"),
    USER_REGISTER_INFO_ERROR(5528, "用户注册信息填写错误"),
    PASSWORD_RULE_ERROR(5529, "密码格式错误"),
    VENDOR_IS_NOT_EXIST(5530, "商户不存在"),
    VENDOR_STATUS_CLOSE(5531, "店铺已关闭"),
    EMAIL_ERROR(5534, "邮箱格式不正确"),
    SMSCODE_NOT_EXIST(5535, "验证码不能为空"),
    CHANNEL_NOT_SUPPORTED(5536, "不支持的注册渠道"),
    EMAIL_EXISTED(5537, "邮箱已存在"),
    MEMBERID_NULL(5538,"用户ID不能为空"),
    SMSCODE_ERROR(5539,"验证码错误"),
    FAVOURITE_PRODUCT_NULL(5540,"收藏商品编码不能为空"),
    FOOTPRINT_NULL(5541,"用户足迹为空"),
    INVOICE_TITLE_NULL(5542,"发票抬头不能为空"),
    INVOICE_TYPE_NULL(5543,"发票类型不能为空"),
    INVOICE_IDEN_NULL(5545,"纳税人识别号不能为空"),
    ADDRESS_LABEL_REPEAT(5546,"标签名重复"),
    HOME_COMPANY_CANT_DEL(5547,"家和公司不能删除"),
    LABEL_NOT_EXIST(5548,"标签不存在"),
    MOBILE_EXISTED(5549,"手机号已存在"),
    ID_ERROR(5598,"ID不能为空"),
    BANK_CARD_ID_NULL(5599,"银行卡ID为空"),
    BANK_CARD_NULL(5599,"银行卡为空"),
    FAVOURITE_NULL(5600,"收藏为空"),
    PARAMS_ERROR(5599,"参数有误,请稍后再试!")
    ;


    private int code;

    private String description;



}
